home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / hamradio / logeqf72.zip / LOGEQF.EXE / BACKUP.BAT next >
DOS Batch File  |  1995-07-08  |  790b  |  33 lines

  1. @echo off
  2. REM
  3. REM  This .BAT file can be edited for your favorite backup utility...
  4. REM
  5. REM  Note that you must either put the backup utility in this directory
  6. REM  or specify the full path name for the utility in this BATCH file.
  7. REM
  8. REM       %1 = logbook.*       %2 = TARGET DISK DRIVE
  9. REM
  10. IF NOT EXIST C:\DOS\BACKUP.EXE GOTO STEP0
  11. C:\DOS\BACKUP.EXE %1 %2
  12. GOTO STEP4
  13. :STEP0
  14. IF NOT EXIST BACKUP.EXE GOTO STEP1
  15. BACKUP.EXE %1 %2
  16. GOTO STEP4
  17. :STEP1
  18. IF NOT EXIST PKZIP.EXE GOTO STEP2
  19. PKZIP -& %2%0 %1
  20. GOTO STEP4
  21. :STEP2
  22. XCOPY %1 %2
  23. IF ERRORLEVEL 0 GOTO STEP4
  24. :STEP3
  25. ECHO .    Log-EQF could not perform the backup requested...
  26. ECHO .
  27. ECHO .    Please check your target drive - or change file BACKUP.BAT
  28. ECHO .    to match your configuration.
  29. ECHO .
  30. PAUSE
  31. :STEP4
  32.  
  33.